package hhs.poc.activities.scanner.ocr;


public class OCRScannerResult {

	private Department _department;
	private int _level;
	private int _room;
	private int _subroom;
	private String _rawResult;
	
	public OCRScannerResult(Department department, int level, int room, String rawResult) {
		this._department = department;
		this._level = level;
		this._room = room;
		this._rawResult = rawResult;
	}

	public Department getDepartment() {
		return _department;
	}

	public int getLevel() {
		return _level;
	}

	public int getRoom() {
		return _room;
	}

	public int getSubroom() {
		return _subroom;
	}
	
	public String getRawResult() {
		return _rawResult;
	}
	
	public String toString() {
		// hoger dan 5 = slinger
		String result = "";
		
		if(_department == Department.SLINGER) {
			result += "SL ";
		} else if(_department == Department.OVAAL) {
			result += "OV ";
		} else if(_department == Department.RUGZAK) {
			result += "RZ ";
		} else if(_department == Department.STRIP) {
			result += "ST ";
		}
		
		result += _level + "." + _room;
		
		return result;
		
	}
	
	
}
